package org.fuxian.service.impl;

import org.fuxian.dao.MyEmpMapper;
import org.fuxian.domain.MyEmp;
import org.fuxian.service.IMyEmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MyEmpServiceImpl  implements IMyEmpService {
    @Autowired
    private MyEmpMapper myempMapper;
    @Override
    public MyEmp login(MyEmp myemp) {
        return myempMapper.login(myemp.getEname(), myemp.getEpsw());
    }

    @Override
    public MyEmp findByEname(String ename) {
        return myempMapper.findByEname(ename);
    }
}
